package com.cuicuisha.gxyp.manager.service;

import com.cuicuisha.gxyp.model.dto.system.LoginDto;
import com.cuicuisha.gxyp.model.dto.system.SysRoleDto;
import com.cuicuisha.gxyp.model.dto.system.SysUserDto;
import com.cuicuisha.gxyp.model.entity.system.SysUser;
import com.cuicuisha.gxyp.model.vo.system.LoginVo;
import com.github.pagehelper.PageInfo;

/**
 * ClassName: SysUserService
 * Description:
 *
 * @Author 脆脆鲨
 * @Create 2024-09-09 20:36
 * @Version 1.0
 */
public interface SysUserService {
    /**
     * 根据用户名查询用户数据
     *  @return
     */
    LoginVo login(LoginDto loginDto);

    void logout(String token);

    PageInfo<SysUser> findByPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);
}

